package com.ruoyi.yun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yun.mapper.YunProfileCarofflineMapper;
import com.ruoyi.yun.domain.YunProfileCaroffline;
import com.ruoyi.yun.service.IYunProfileCarofflineService;

/**
 * 车辆离线登记Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class YunProfileCarofflineServiceImpl implements IYunProfileCarofflineService 
{
    @Autowired
    private YunProfileCarofflineMapper yunProfileCarofflineMapper;

    /**
     * 查询车辆离线登记
     * 
     * @param id 车辆离线登记主键
     * @return 车辆离线登记
     */
    @Override
    public YunProfileCaroffline selectYunProfileCarofflineById(Long id)
    {
        return yunProfileCarofflineMapper.selectYunProfileCarofflineById(id);
    }

    /**
     * 查询车辆离线登记列表
     * 
     * @param yunProfileCaroffline 车辆离线登记
     * @return 车辆离线登记
     */
    @Override
    public List<YunProfileCaroffline> selectYunProfileCarofflineList(YunProfileCaroffline yunProfileCaroffline)
    {
        return yunProfileCarofflineMapper.selectYunProfileCarofflineList(yunProfileCaroffline);
    }

    /**
     * 新增车辆离线登记
     * 
     * @param yunProfileCaroffline 车辆离线登记
     * @return 结果
     */
    @Override
    public int insertYunProfileCaroffline(YunProfileCaroffline yunProfileCaroffline)
    {
        return yunProfileCarofflineMapper.insertYunProfileCaroffline(yunProfileCaroffline);
    }

    /**
     * 修改车辆离线登记
     * 
     * @param yunProfileCaroffline 车辆离线登记
     * @return 结果
     */
    @Override
    public int updateYunProfileCaroffline(YunProfileCaroffline yunProfileCaroffline)
    {
        return yunProfileCarofflineMapper.updateYunProfileCaroffline(yunProfileCaroffline);
    }

    /**
     * 批量删除车辆离线登记
     * 
     * @param ids 需要删除的车辆离线登记主键
     * @return 结果
     */
    @Override
    public int deleteYunProfileCarofflineByIds(Long[] ids)
    {
        return yunProfileCarofflineMapper.deleteYunProfileCarofflineByIds(ids);
    }

    /**
     * 删除车辆离线登记信息
     * 
     * @param id 车辆离线登记主键
     * @return 结果
     */
    @Override
    public int deleteYunProfileCarofflineById(Long id)
    {
        return yunProfileCarofflineMapper.deleteYunProfileCarofflineById(id);
    }
}
